﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="CourseJava.aspx.cs" Inherits="CourseJava" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title></title>
    <link rel="stylesheet" href="../css/navstyle.css" media="all" />
    <link rel="stylesheet" href="../css/page.css" media="all" />
    <link rel="stylesheet" href="../css/tophit.css" media="all" />
    <style type="text/css">
        .main
        {
            margin: 5px auto 0px auto;
            width: 1024px;
            height: 100%;
            background-color: #FFFFFF;
            border: 0;
            text-align: left; 
        }
        .left
        {
            width: 640px;
            background-color: #ffffff;
            float: left;
            margin-top: 10px;
            margin-bottom: 10px;
            margin-left: 30px;
            _margin-left: 15px;
            border: 1px solid #DFDFDF;
            padding-right:20px;
            padding-left:20px;
            padding-top:10px;
            padding-bottom:20px;
        }
        
        .left .line
        {
            width:100%;
            height:1px;
            border-bottom:1px solid #DFDFDF;
            overflow: hidden;
            margin-bottom:5px;
            margin-top:5px;
            }
        .rigth
        {
            width: 270px;
            float: left;
            background-color: #ffffff;
            padding-bottom: 10px;
            padding-left: 20px;
            padding-right: 10px;
            padding-top: 10px;
            margin-bottom: 10px;
        }
        .title
        {
            text-align: center;
            font-size: 20px;
            font-weight: bold;
            margin-top: 10px;
            margin-bottom: 5px;
        }
        .info
        {
            width: 90%;
            margin: 0 auto;
            background-color: #ffffff;
            line-height:30px;
            font-size:14px; 
        }
        .info img
        {
            max-width: 430px;
            border:0px;
            width: expression(this.width > 430 ? 430: true);
        }
        .info .title
        {
            font-weight:bold; 
            font-size:14px; 
        }
        .info .txt
        {
            text-indent:2em;
        }
    </style>
    <script language="javascript" type="text/javascript">
        function openWin(u, w, h) {
            var l = (screen.width - w) / 2;
            var t = (screen.height - h) / 2;
            var s = 'width=' + w + ', height=' + h + ', top=' + t + ', left=' + l;
            s += ', toolbar=no, scrollbars=no, menubar=no, location=no, resizable=no';
            open(u, 'oWin', s);
        } 
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="all">
        <div class="banner">
            <div class="logo">
            </div>
            <div class="blankleft">
            </div>
            <div class="blankalt">
            </div>
            <div class="blankrigth">
            </div>
        </div>
        <div class="NavBar">
            <div id="menu">
                <ul>
                    <li><a href="/"><span>首页</span></a></li>
                    <li><a href="../newsList.aspx"><span>新闻中心</span></a></li>
                    <li><a href="../javaList.aspx" class="current"><span>Java专区</span></a></li>
                    <li><a href="../netList.aspx"><span>.net专区</span></a></li>
                    <li><a href="../dataList.aspx"><span>数据库专区</span></a></li>
                    <li><a href="../otherList.aspx"><span>其他 专区</span></a></li>
                    <li><a href="../teacherList.aspx"><span>教师简介</span></a></li>
                    <li><a href="../aboutus.aspx"><span>关于我们</span></a></li>
                </ul>
            </div>
        </div>
        <div class="main">
            <div class="mappath">
                您所在的位置：<asp:SiteMapPath ID="smp_web" runat="server">
                </asp:SiteMapPath>
            </div>
            <div class="center"></div>
            <div class="left">
                <center>
                    <span class="title"><%=courseName%></span></center>
                <div class="line">
                </div>
                <div class="info">
                    <br />
                    课程详情<br />
                    <span class="title">更新时间：</span><%=updateTime %><br />
                    <span class="title">课程课时：</span><%=courseHour %><br />
                    <span class="title">课程售价：</span><%=courseGold %><br />
                    <span class="title">课程简介：</span><br /><div class="txt"><%=courseAbout %></div>
                    <span class="title">下载信息：</span><br />
                    <% if (!isLogin)
                       { %>
                    <br /><div class="txt">请<a href="stu/login.aspx" target="_blank"><img src="images/login2.gif"/></a>后获取下载地址</div><div class="txt">如没有帐号，请<a href="stu/register.aspx" target="_blank"><img src="images/reg.gif"/></a>后再进行操作。</div><br />
                    <%}
                       else
                       {

                           if (isSell)
                           {
                    %>
                    <asp:Repeater ID="coursewareList" runat="server">
                        <ItemTemplate>
                            <a href="Courseware.aspx?id=<%# DataBinder.Eval(Container.DataItem, "coursewareid")%>"
                                target="_blank">
                                <%# DataBinder.Eval(Container.DataItem, "num")%>_<%# DataBinder.Eval(Container.DataItem, "coursewarename")%></a>&nbsp;&nbsp;
                        </ItemTemplate>
                    </asp:Repeater>
                    <%}
               else
               { %>
                    <br /><div class="txt">该课程您还没有购买，<a href="javascript:void(openWin('sellCourse.aspx?id=<%=courseID%>', 300, 200));"><img src="images/buy.gif" /></a>后可以获取下载信息。</div><br />
                    <%    
                        }
           }
                    %>
                    <br />
                </div>
            </div>
            <div class="rigth">
                <div class="portlet" style="width: 260px">
                    <h2>
                        本类热点课程</h2>
                    <div class="portletcontent">
                        <div class="bi">
                            <p>
                            </p>
                            <table width="250" border="0">
                                <asp:Repeater ID="hit_list" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td width="200" align="left">&nbsp;&nbsp;&nbsp;&nbsp;
                                                <a target="_blank" href="../Course.aspx?id=<%# DataBinder.Eval(Container.DataItem, "courseid")%>">
                                                    <%# DataBinder.Eval(Container.DataItem, "courseName").ToString().Length > 11 ? DataBinder.Eval(Container.DataItem, "courseName").ToString().Substring(0, 11) : DataBinder.Eval(Container.DataItem, "courseName").ToString()%></a>
                                            </td>
                                            <td width="50" align="left">
                                                <%# DataBinder.Eval(Container.DataItem, "num")%>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                            <p>
                            </p>
                            <div class="bb">
                                <div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="portlet" style="width: 260px">
                    <h2>
                        本站热点课程</h2>
                    <div class="portletcontent">
                        <div class="bi">
                            <p>
                            </p>
                            <table width="250" border="0">
                                <asp:Repeater ID="all_hit_list" runat="server">
                                    <ItemTemplate>
                                        <tr>
                                            <td width="200" align="left">&nbsp;&nbsp;&nbsp;&nbsp;
                                                <a target="_blank" href="../Course.aspx?id=<%# DataBinder.Eval(Container.DataItem, "courseid")%>">
                                                    <%# DataBinder.Eval(Container.DataItem, "courseName").ToString().Length > 11 ? DataBinder.Eval(Container.DataItem, "courseName").ToString().Substring(0, 11) : DataBinder.Eval(Container.DataItem, "courseName").ToString()%></a>
                                            </td>
                                            <td width="50" align="left">
                                                <%# DataBinder.Eval(Container.DataItem, "num")%>
                                            </td>
                                        </tr>
                                    </ItemTemplate>
                                </asp:Repeater>
                            </table>
                            <p>
                            </p>
                            <div class="bb">
                                <div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <div style="font: 0px/0px sans-serif; clear: both; display: block">
            </div>
        </div>
        <div class="bottom">
            <div class="blogroll">
                <img src="images/blogrool.gif" alt="" height="31" width="88" border="0" />
                <asp:Repeater ID="blogrollList" runat="server">
                    <ItemTemplate>
                        <a href="http://<%# DataBinder.Eval(Container.DataItem, "sitelink")%>" target="_blank">
                            <img src="<%# DataBinder.Eval(Container.DataItem, "siteLogo")%>" height="31" width="88"
                                alt="<%# DataBinder.Eval(Container.DataItem, "siteAlt")%>" border="0" /></a>
                    </ItemTemplate>
                </asp:Repeater>
            </div>
        </div>
        <div class="splitred">
        </div>
        <div class="copyright">
            <% =strcr %>
        </div>
    </div>
    </form>
</body>
</html>
